dojo.declare("DMCustomerOrderSelectPg", wm.Page, {
totalOrderAmount: 0,
start: function() {
this.txtSearch.clear();
this.largeTextArea1.clear();
},
"preferredDevice": "desktop",
isNumber: function(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
},
list1ItemIdFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var display = "<div class='MobileRowTitle'>Item Name: " + rowObj.desc + "</div>" + "<div class='MobileRow'>Quantity: " + rowObj.quantity + "</div>" + "<div class='MobileRow'>OrderedPrice: " + rowObj.orderedPrice + "</div>";
return display;
},
listFinalOrderItemNameFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var display = "<div class='MobileRowTitle'>" + rowObj.quantity + " " + rowObj.itemName + " <br>  Price: " + (rowObj.orderedPrice * rowObj.quantity) + " Rs </div>";
//var display = "<div class='MobileRowTitle'>"+ rowObj.quantity +" " + rowObj.itemName + "</div>" + "<div class='MobileRow'>Quantity: " + rowObj.quantity + "  Price: " + rowObj.orderedPrice + " Rs </div>";
return display;
},
listVendorItemsPriceFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var display = "<div class='MobileRow' style='font-size:13px'><font color='red'>Price </font></div>  <div class='MobileRow' style='font-size:13px'><b> <font color='red'>" + rowObj.price + " Rs</font></b></div>";
return display;
},
lvVendorItemsSuccess: function(inSender, inDeprecated) {
this.renderVendorItemList();
},
selectOrder: function(inSender) {
// console.error(inSender);
},
showDescription: function(inSender) {
var imgId = inSender.id;
var rowId = imgId.substr(imgId.indexOf('_') + 1);
var itemObj = this.lvVendorItems.getItem(rowId);
//        this.ddItemDesc.setShowing(true, false, true);
this.ddItemDesc.setShowing(true);
// this.labelItemName.setCaption(itemObj.data.itemName);
this.labelDescription.setCaption(itemObj.data.itemDesc);
},
showItemDescription: function(rowId) {
//var itemObj = this.lvVendorItems.getItem(rowId);
//        this.ddItemDesc.setShowing(true, false, true);
this.ddItemDesc.setShowing(true);
// this.labelItemName.setCaption(itemObj.data.itemName);
this.labelDescription.setCaption(rowId);
},
bOrderPreviewClick2: function(inSender) {
//method for new check out
wm.Page.getPage("DCustomerHomePg").vPageBack = "CHECK_OUT";
this.largeTextArea1.clear();
//hide the search
this.vOrderedItems.clearData();
var totalPrice = 0;
this.totalOrderAmount = 0;
for (var count = 0; count < this.lvVendorItems.getCount(); count++) {
var vItem = this.lvVendorItems.getItem(count);
if (vItem.data.tax > 0) {
var qty = vItem.data.tax;
var price = (qty * vItem.data.price);
price = Math.round(price * 100) / 100;
totalPrice = totalPrice + price;
totalPrice = Math.round(totalPrice * 100) / 100;
this.vOrderedItems.addItem({
itemId: vItem.data.itemId,
itemName: vItem.data.itemName,
quantity: vItem.data.tax,
orderedPrice: vItem.data.price,
desc: vItem.data.itemDesc
});
}
}
if (this.vOrderedItems.getCount() > 0) {
this.totalOrderAmount = totalPrice;
this.layerPlaceOrder.activate();
this.panel2.setShowing(true);
this.labelTotalOrderPrice.setShowing(true);
// this.labelSelectItem.setShowing(false);
this.totalOrderAmount = Math.round(totalPrice * 100) / 100;
this.labelTotalOrderPrice.setCaption("Total:" + this.totalOrderAmount + " Rs");
this.buttonConfirmOrder.setShowing(true);
// this.labelReviewOrder.setShowing(true);
this.panel9.setShowing(false);
} else {
app.toastWarning("Please Select atleast one Item", 2000);
// this.labelReviewOrder.setShowing(false);
// this.labelSelectItem.setShowing(true);
this.labelTotalOrderPrice.setShowing(false);
this.buttonConfirmOrder.setShowing(false);
}
},
buttonAnotherOrderClick: function(inSender) {
wm.Page.getPage("DCustomerHomePg").ncServices.update();
},
buttonConfirmOrderClick: function(inSender) {
wm.Page.getPage("DCustomerHomePg").vPageBack = "CONFIRM_ORDER";
var mainPage = wm.Page.getPage("MobileMainPg");
var custMainPage = wm.Page.getPage("DCustomerHomePg");
var orderBlock = false;
this.panel9.setShowing(false);
if (custMainPage.vVendorMinAmount) {
if (custMainPage.vVendorMinAmount && custMainPage.vVendorMinAmount > this.totalOrderAmount) {
orderBlock = true;
}
}
if (!orderBlock) {
if (this.totalOrderAmount > 0) {
// this.svCompleteOrder.input.setValue("order.customerId", mainPage.vUserId);
this.svCompleteOrder.update();
this.layerOrderResult.activate();
} else {
app.toastWarning("Please select atleast one item", 2000);
}
} else {
app.toastPosition = "center center";
app.toastError("Minimum Order Amount is Rs" + custMainPage.vVendorMinAmount, 2000);
}
},
svCompleteOrderSuccess1: function(inSender, inDeprecated) {
this.vOrderedItems.clearData();
},
mbBackServicesClick: function(inSender) {
wm.Page.getPage("MCustomerHomePg").ncServices.update();
},
svCompleteOrderError1: function(inSender, inError) {
this.vOrderedItems.clearData();
},
listItemsItemNameFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
},
listItemsGridAddCartClick: function(rowIndex) {
for (var count = 0; count < this.lvVendorItems.getCount(); count++) {
var vItem = this.lvVendorItems.getItem(count);
if (vItem.data.itemId === rowIndex) {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax + 1;
} else {
vItem.data.tax = 1;
}
this.lvVendorItems.setItem(count, vItem);
}
}
},
listItemsGridRemoveCartClick: function(rowIndex) {
for (var count = 0; count < this.lvVendorItems.getCount(); count++) {
var vItem = this.lvVendorItems.getItem(count);
if (vItem.data.itemId === rowIndex) {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax - 1;
}
this.lvVendorItems.setItem(count, vItem);
}
}
},
listItemsImageUrlFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var imgClaimHTML = '<br><br> No Image <br>';
var unitVal = rowObj.unit;
if (unitVal === null) {
unitVal = "";
}
if (inValue !== null && inValue !== "") {
var path = this.getRuntimeId() + ".showItemDescription('" + rowObj.itemDesc + "')";
// alert(path);
imgClaimHTML = '<img src="' + inValue + '" onclick="' + path + '" align="center" height="70px" width="70px")> ';
}
imgClaimHTML = imgClaimHTML + " <br>  <br>" + rowObj.itemName + " <br> " + rowObj.price + " " + rowObj.currency + " / " + unitVal;
if (rowObj.quantity && rowObj.quantity > 0) {
//imgClaimHTML= imgClaimHTML+" <br> <br> "+rowObj.quantity +" in Cart <br> ";
} else {
}
return imgClaimHTML;
},
listItemsQuantityFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var editTx = '<button  type="button"   onclick="' + this.getRuntimeId() + '.listItemsGridAddCartClick(' + rowObj.itemId + ')" height="40px" width="50px" > Add</button>';
if (rowObj.tax && rowObj.tax > 0) {
editTx = editTx + " <br> " + rowObj.tax + " in Cart <br> ";
} else {
editTx = editTx + "<br>";
}
editTx = editTx + '<button  type="button"   onclick="' + this.getRuntimeId() + '.listItemsGridRemoveCartClick(' + rowObj.itemId + ')" height="40px" width="50px" > Remove</button>';
return editTx;
},
listCategoriesGridButtonClick: function(inSender, fieldName, rowData, rowIndex) {
this.listItemsGridButtonClick(inSender, fieldName, rowData, rowIndex);
},
listCategoriesBrandFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var buttonText = '<img src ="resources/images/mobile/next_img.png" height="26px" />';
return buttonText;
},
listCategoriesSelect: function(inSender, inItem) {
var itemType = this.listCategories.selectedItem.data.itemType;
wm.Page.getPage("DCustomerHomePg").vPageBack = "VENDOR_ITEM_CATEGORY";
if (itemType !== null) {
this.listItems.setQuery({
itemType: itemType
});
this.panelVendorItems2.setShowing(false);
}
},
bSearchClick: function(inSender) {
var itemName = this.txtSearch.dataValue;
wm.Page.getPage("DCustomerHomePg").vPageBack = "VENDOR_ITEM_CATEGORY";
if (itemName && itemName !== null && itemName !== "") {
this.listItems.setQuery({
itemName: "*" + itemName + "*"
});
var newList = this.lvVendorItems.query({
itemName: "*" + itemName + "*"
});
if (newList.getCount() < 1) {
this.panelVendorItems2.setShowing(true);
} else {
this.panelVendorItems2.setShowing(false);
}
} else {
this.panelVendorItems2.setShowing(false);
this.listItems.setQuery({});
}
},
bCancelOrderClick1: function(inSender) {
this.panel9.setShowing(true);
},
layerSelectCategoryShow: function(inSender) {
this.panel9.setShowing(true);
},
layerSelectOrderShow: function(inSender) {
this.panel9.setShowing(true);
},
refreshVendorItemList: function() {
this.vOrderedItems.clearData();
try {
for (var count = 0; count <= this.lvVendorItems.getCount(); count++) {
var vItem = this.lvVendorItems.getItem(count);
if (vItem && vItem.data.tax) {
vItem.data.tax = 0;
this.lvVendorItems.setItem(count, vItem);
}
}
} catch (e) {
console.log(e);
}
this.panel9.setShowing(true);
},
listItemsGridButtonClick: function(inSender, fieldName, rowData, rowIndex) {
for (var count = 0; count < this.lvVendorItems.getCount(); count++) {
var vItem = this.lvVendorItems.getItem(count);
if (vItem.data.itemId === rowData.itemId) {
if (fieldName === "price") {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax - 1;
this.ncOrderUpdateRemove.update();
}
}
if (fieldName === "tax") {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax + 1;
} else {
vItem.data.tax = 1;
}
this.ncOrderUpdate.update();
}
this.lvVendorItems.setItem(count, vItem);
}
}
},
buttonBackClick2: function(inSender) {
this.txtSearch.clear();
},
listCategoriesSelect2: function(inSender, inItem) {
this.txtSearch.clear();
},
listFinalOrder1GridButtonClick: function(inSender, fieldName, rowData, rowIndex) {
this.totalOrderAmount = 0;
for (var count = 0; count < this.vOrderedItems.getCount(); count++) {
var vItem = this.vOrderedItems.getItem(count);
if (vItem.data.itemId === rowData.itemId) {
if (fieldName === "quantity") {
if (vItem.data.quantity) {
vItem.data.quantity = vItem.data.quantity + 1;
this.ncOrderUpdate.update();
} else {
vItem.data.quantity = 1;
this.ncOrderUpdate.update();
}
}
//remove from cart
if (fieldName === "orderedPrice") {
if (vItem.data.quantity) {
vItem.data.quantity = vItem.data.quantity - 1;
this.ncOrderUpdateRemove.update();
}
// this.vOrderedItems.removeItem(count);
}
this.vOrderedItems.setItem(count, vItem);
}
var price = vItem.data.orderedPrice * vItem.data.quantity;
price = Math.round(price * 100) / 100;
this.totalOrderAmount = this.totalOrderAmount + price;
}
this.labelTotalOrderPrice.setCaption("Total:" + this.totalOrderAmount + " Rs");
},
listFinalOrder1QuantityFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var editTx = '<button  type="button"   onclick="' + this.getRuntimeId() + '.listUpdateConfirmOrderAdd(' + rowObj.itemId + ')" height="40px" width="50px" > Add</button>';
if (rowObj.quantity && rowObj.quantity > 0) {
editTx = editTx + " <br> " + rowObj.quantity + " in Cart <br> ";
} else {
editTx = editTx + "<br>";
}
editTx = editTx + '<button  type="button"   onclick="' + this.getRuntimeId() + '.listUpdateConfirmOrderRemove(' + rowObj.itemId + ')" height="40px" width="50px" > Remove</button>';
return editTx;
},
listUpdateConfirmOrderAdd: function(rowIndex) {
this.totalOrderAmount = 0;
for (var count = 0; count < this.vOrderedItems.getCount(); count++) {
var vItem = this.vOrderedItems.getItem(count);
var price = vItem.data.orderedPrice * vItem.data.quantity;
price = Math.round(price * 100) / 100;
if (vItem.data.itemId === rowIndex) {
if (vItem.data.quantity) {
vItem.data.quantity = vItem.data.quantity + 1;
price = vItem.data.orderedPrice * vItem.data.quantity;
this.ncOrderUpdate.update();
}
this.vOrderedItems.setItem(count, vItem);
}
this.totalOrderAmount = this.totalOrderAmount + price;
}
this.labelTotalOrderPrice.setCaption("Total:" + this.totalOrderAmount + " Rs");
},
listUpdateConfirmOrderRemove: function(rowIndex) {
this.totalOrderAmount = 0;
for (var count = 0; count < this.vOrderedItems.getCount(); count++) {
var vItem = this.vOrderedItems.getItem(count);
var price = vItem.data.orderedPrice * vItem.data.quantity;
price = Math.round(price * 100) / 100;
if (vItem.data.itemId === rowIndex) {
if (vItem.data.quantity) {
vItem.data.quantity = vItem.data.quantity - 1;
price = vItem.data.orderedPrice * vItem.data.quantity;
this.ncOrderUpdateRemove.update();
}
this.vOrderedItems.setItem(count, vItem);
}
this.totalOrderAmount = this.totalOrderAmount + price;
this.totalOrderAmount = Math.round(price * 100) / 100;
this.labelTotalOrderPrice.setCaption("Total:" + this.totalOrderAmount + " Rs");
}
},
listFinalOrder1OrderedPriceFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
},
layerPlaceOrderShow: function(inSender) {
this.largeTextArea1.clear();
},
_end: 0
});

DMCustomerOrderSelectPg.widgets = {
lvVendorItems: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","orderBy":"asc:itemName","type":"com.servicelivedb.data.Items"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire1: ["wm.Wire", {"expression":"false","targetProperty":"filter.outOfStock"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].listProjectServiceVendors.selectedItem.project.projectId","targetProperty":"filter.projectServiceVendor.project.projectId"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].listProjectServiceVendors.selectedItem.services.serviceId","targetProperty":"filter.projectServiceVendor.services.serviceId"}, {}],
wire3: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].listProjectServiceVendors.selectedItem.customer.customerId","targetProperty":"filter.projectServiceVendor.customer.customerId"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Items","view":[
{"caption":"ItemId","sortable":true,"dataIndex":"itemId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ItemName","sortable":true,"dataIndex":"itemName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"ItemDesc","sortable":true,"dataIndex":"itemDesc","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"OutOfStock","sortable":true,"dataIndex":"outOfStock","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"Quantity","sortable":true,"dataIndex":"quantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"Price","sortable":true,"dataIndex":"price","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"MinQuantity","sortable":true,"dataIndex":"minQuantity","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Unit","sortable":true,"dataIndex":"unit","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"OtherNames","sortable":true,"dataIndex":"otherNames","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"updatedDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":10,"subType":null},
{"caption":"ItemType","sortable":true,"dataIndex":"itemType","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11,"subType":null},
{"caption":"Brand","sortable":true,"dataIndex":"brand","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":12,"subType":null},
{"caption":"Discount","sortable":true,"dataIndex":"discount","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"VendorPrice","sortable":true,"dataIndex":"vendorPrice","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"ServiceCharge","sortable":true,"dataIndex":"serviceCharge","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"AvailibilityStartDt","sortable":true,"dataIndex":"availibilityStartDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"AvailibilityEndDt","sortable":true,"dataIndex":"availibilityEndDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null},
{"caption":"Tax","sortable":true,"dataIndex":"tax","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":18,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":19,"subType":null},
{"caption":"ImageUrl","sortable":true,"dataIndex":"imageUrl","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":20,"subType":null},
{"caption":"Currency","sortable":true,"dataIndex":"currency","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":21,"subType":null},
{"caption":"OtherCharges","sortable":true,"dataIndex":"otherCharges","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":22,"subType":null},
{"caption":"DeliveryCharges","sortable":true,"dataIndex":"deliveryCharges","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":23,"subType":null},
{"caption":"TpsShareExl","sortable":true,"dataIndex":"tpsShareExl","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":24,"subType":null},
{"caption":"TpsShareIncl","sortable":true,"dataIndex":"tpsShareIncl","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":25,"subType":null},
{"caption":"TpsPercentExl","sortable":true,"dataIndex":"tpsPercentExl","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":26,"subType":null},
{"caption":"TpsPercentIncl","sortable":true,"dataIndex":"tpsPercentIncl","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":27,"subType":null},
{"caption":"EduCess","sortable":true,"dataIndex":"eduCess","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":28,"subType":null},
{"caption":"ServiceTax","sortable":true,"dataIndex":"serviceTax","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":29,"subType":null},
{"caption":"Vat","sortable":true,"dataIndex":"vat","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":30,"subType":null},
{"caption":"BaseValue","sortable":true,"dataIndex":"baseValue","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":31,"subType":null}
]}, {}]
}],
vOrderedItems: ["wm.Variable", {"isList":true,"json":"[null]","type":"com.servicelive.ServiceLiveCommonService.OrderedItemDetails"}, {}],
svCompleteOrder: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"placeOrder","service":"OrderService"}, {"onError":"ncConfirmOrderFail","onError1":"svCompleteOrderError1","onSuccess":"ncConfirmOrder","onSuccess1":"svCompleteOrderSuccess1"}, {
input: ["wm.ServiceInput", {"type":"placeOrderInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire2: ["wm.Wire", {"expression":undefined,"source":"vOrderedItems","targetProperty":"order.details"}, {}],
wire3: ["wm.Wire", {"expression":undefined,"source":"largeTextArea1.displayValue","targetProperty":"order.comment"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].listProjectServiceVendors.selectedItem.customer.customerId","targetProperty":"vendorId"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"[main].lvLoggedCustomer.customerId","targetProperty":"order.customerId"}, {}],
wire4: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].listProjectServiceVendors.selectedItem.customer.customerId","targetProperty":"order.vendorId"}, {}]
}]
}]
}],
ncConfirmOrder: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Your Order has been placed successfully.\"","targetProperty":"text"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
ncConfirmOrderFail: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire1: ["wm.Wire", {"expression":"3000","targetProperty":"duration"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire: ["wm.Wire", {"expression":"\"Your Order could not be placed\"","targetProperty":"text"}, {}],
wire2: ["wm.Wire", {"expression":"\"Error\"","targetProperty":"cssClasses"}, {}]
}]
}]
}],
ncDisplayOrderResult: ["wm.NavigationCall", {}, {}, {
input: ["wm.ServiceInput", {"type":"gotoLayerInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layerOrderResults","targetProperty":"layer"}, {}]
}]
}]
}],
ncSelectOrder: ["wm.NavigationCall", {}, {}, {
input: ["wm.ServiceInput", {"type":"gotoLayerInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layerSelectOrder","targetProperty":"layer"}, {}]
}]
}]
}],
ncOrderUpdate: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"Added to Cart\"","targetProperty":"text"}, {}],
wire1: ["wm.Wire", {"expression":"1000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
}]
}]
}],
ncOrderUpdateRemove: ["wm.NotificationCall", {"operation":"toast"}, {}, {
input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire1: ["wm.Wire", {"expression":"1000","targetProperty":"duration"}, {}],
wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}],
wire: ["wm.Wire", {"expression":"\"Removed from Cart\"","targetProperty":"text"}, {}]
}]
}]
}],
ddItemDesc: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","corner":"tl","height":"80%","styles":{},"title":"Details","width":"80%"}, {}, {
containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
labelItemName: ["wm.Label", {"align":"center","height":"40px","padding":"4","showing":false,"singleLine":false,"width":"100%"}, {}],
label2: ["wm.Label", {"align":"center","caption":"Description","padding":"4"}, {}],
labelDescription: ["wm.Label", {"height":"100%","padding":"4","singleLine":false,"width":"100%"}, {}]
}]
}],
buttonBar: ["wm.ButtonBarPanel", {"border":"1,0,0,0","borderColor":"black","desktopHeight":"41px","height":"33px","mobileHeight":"41px"}, {}, {
buttonDDClose: ["wm.Button", {"border":"1","caption":"Close","width":"100%"}, {"onclick":"ddItemDesc.hide"}]
}]
}],
ldOrderPlacement: ["wm.LoadingDialog", {"caption":"Please wait..  Order is being processed...","captionWidth":"150px","serviceVariableToTrack":["svCompleteOrder"],"styles":{}}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
loadingItems: ["wm.LoadingDialog", {"caption":"Loading Vendor Items..Please wait","captionWidth":"100%","serviceVariableToTrack":["lvVendorItems"]}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"layoutBox1","targetProperty":"widgetToCover"}, {}]
}]
}],
ddUpdateQty: ["wm.DesignableDialog", {"buttonBarId":"buttonBar1","containerPadding":"2","containerWidgetId":"containerWidget2","corner":"bl","height":"100%","title":"Update Quantity","titlebarBorderColor":"#f1b2b2","titlebarHeight":"20","width":"100%"}, {}, {
containerWidget2: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"2","verticalAlign":"top","width":"100%"}, {}, {
panel7: ["wm.Panel", {"desktopHeight":"35px","enableTouchHeight":true,"height":"35px","horizontalAlign":"center","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
txtQuantity: ["wm.Number", {"border":"0","caption":"Quantity","captionSize":"70px","dataValue":undefined,"desktopHeight":"40px","displayValue":"","height":"40px","maximum":1000,"minimum":0,"mobileHeight":"40px","required":true,"width":"60%"}, {}]
}],
panel6: ["wm.Panel", {"height":"45px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
button2: ["wm.Button", {"border":"1","caption":"Cancel","desktopHeight":"40px","height":"40px","width":"100px"}, {"onclick":"ddUpdateQty.hide"}],
spacer1: ["wm.Spacer", {"height":"10px","width":"20px"}, {}],
bAddCartButton: ["wm.Button", {"border":"1","caption":"Add to Cart","width":"140px"}, {"onclick":"bAddCartButtonClick","onclick1":"ddUpdateQty.hide"}]
}]
}],
buttonBar1: ["wm.ButtonBarPanel", {"border":"1,0,0,0","borderColor":"black","height":"15px"}, {}]
}],
ldgg: ["wm.LoadingDialog", {"styles":{}}, {}],
layoutBox1: ["wm.Layout", {"autoScroll":false,"horizontalAlign":"center","styles":{},"verticalAlign":"top","width":"95%"}, {}, {
panel9: ["wm.Panel", {"borderColor":"#e11e1e","desktopHeight":"45px","enableTouchHeight":true,"height":"45px","horizontalAlign":"left","layoutKind":"left-to-right","mobileHeight":"42px","styles":{"borderRadius":"8px"},"verticalAlign":"middle","width":"55%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"!${[dCustomerHomePg].svItemCategory.isEmpty}","targetProperty":"showing"}, {}]
}],
txtSearch: ["wm.Text", {"border":"0","caption":"text1","captionSize":"0px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"35px","mobileHeight":"37px","padding":"0","placeHolder":"Search Item Name","styles":{"borderRadius":"12px"},"width":"95%"}, {}],
bSearch: ["wm.Button", {"border":"1","caption":"Search","desktopHeight":"40px","height":"40px","imageIndex":66,"imageList":"app.silkIconList","mobileHeight":"37px","styles":{},"width":"94.5px"}, {"onclick":"bSearchClick","onclick1":"layerSelectOrder"}],
bOrderPreview2: ["wm.Button", {"border":"1","caption":"Checkout","desktopHeight":"40px","height":"40px","imageIndex":22,"imageList":"app.silkIconList","mobileHeight":"37px","styles":{},"width":"90px"}, {"onclick":"bOrderPreviewClick2"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"${lvVendorItems.isEmpty}","targetProperty":"disabled"}, {}]
}]
}]
}],
layersOrdering: ["wm.Layers", {"defaultLayer":0,"styles":{},"transition":"fade","width":"55%"}, {}, {
layerSelectCategory: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"layer1","enableTouchHeight":true,"horizontalAlign":"left","styles":{},"themeStyleType":"","verticalAlign":"top"}, {"onShow":"layerSelectCategoryShow"}, {
panel8: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"!${[dCustomerHomePg].svItemCategory.isEmpty}","targetProperty":"showing"}, {}]
}],
listCategories: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"border":"1","borderColor":"#e32020","columns":[
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":true,"field":"itemType","title":"ItemType","width":"100%","align":"left","formatFunc":"","editorProps":null,"mobileColumn":true},
{"show":true,"field":"customNextArrow","title":"CustomNextArrow","width":"30px","align":"right","formatFunc":"listCategoriesBrandFormat","isCustomField":true,"mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minHeight":0,"padding":"0,0,0,0","styleAsGrid":false,"styles":{}}, {"onSelect":"listCategoriesSelect","onSelect1":"layerSelectOrder","onSelect2":"listCategoriesSelect2"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].svItemCategory","targetProperty":"dataSet"}, {}]
}]
}]
}],
panelVendorItems1: ["wm.Panel", {"autoScroll":true,"enableTouchHeight":true,"height":"30%","horizontalAlign":"left","margin":"1","styles":{},"verticalAlign":"middle","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"[dCustomerHomePg].svItemCategory.isEmpty","targetProperty":"showing"}, {}]
}],
buttonEmptyItems1: ["wm.Button", {"border":"1","caption":"Item Catalogue is Empty","imageIndex":16,"imageList":"app.silkIconList","styles":{},"width":"100%"}, {}]
}],
buttonBarOrder1: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
bOrderPreview1: ["wm.Button", {"border":"1","caption":"Checkout","imageIndex":22,"imageList":"app.silkIconList","styles":{},"width":"40%"}, {"onclick":"bOrderPreviewClick2"}]
}]
}],
layerSelectOrder: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"layer1","enableTouchHeight":true,"horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {"onShow":"layerSelectOrderShow"}, {
panel5: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","minDesktopHeight":250,"minHeight":250,"verticalAlign":"top","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"!${lvVendorItems.isEmpty}","targetProperty":"showing"}, {}]
}],
listItems: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"borderColor":"#e32020","columns":[
{"show":true,"field":"imageUrl","width":"100%","align":"left","formatFunc":"listItemsImageUrlFormat","formatProps":{"width":50,"height":50},"editorProps":null,"mobileColumn":true},
{"show":false,"field":"itemId","title":"ItemId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"itemName","title":"ItemName","width":"100%","align":"left","expression":"if( ${quantity} && ${quantity} > 0){\n${itemName}+\" </br>\"+${price} +\" \"+ ${currency} + \"</br>\"+${quantity}+${unit}+\" in Cart\";\n}else{\n${itemName}+\" </br>\"+${price} +\" \"+ ${currency} ;\n}","mobileColumn":false},
{"show":false,"field":"itemDesc","title":"ItemDesc","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"quantity","title":"Add Quantity","width":"80px","align":"right","formatProps":null,"editorProps":null,"expression":"if(${quantity} > 0){\n' Remove From Cart';\n}else{\n'';\n\n}","cssClass":"if(true){\"wmButtonIcon\";}","mobileColumn":false},
{"show":false,"field":"minQuantity","title":"MinQuantity","width":"60px","align":"left","formatProps":null,"editorProps":null,"mobileColumn":false},
{"show":false,"field":"outOfStock","title":"OutOfStock","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"price","title":"Price","width":"80px","align":"left","formatFunc":"wm_button_formatter","expression":"if(${tax} > 0){\n' Remove From Cart';\n}else{\n'';\n\n}","mobileColumn":true},
{"show":true,"field":"tax","title":"Tax","width":"80px","align":"right","formatFunc":"wm_button_formatter","formatProps":null,"editorProps":null,"expression":"if(${tax} > 0){\n${tax}+'  in Cart <br>Add More';\n}else{\n' Add to Cart ';\n\n}","mobileColumn":true},
{"show":false,"field":"unit","title":"Unit","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"otherNames","title":"OtherNames","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"updatedBy","title":"UpdatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"updatedDt","title":"UpdatedDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"itemType","title":"ItemType","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"brand","title":"Brand","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"discount","title":"Discount","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vendorPrice","title":"VendorPrice","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"serviceCharge","title":"ServiceCharge","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"availibilityStartDt","title":"AvailibilityStartDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"availibilityEndDt","title":"AvailibilityEndDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"active","title":"Active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"currency","title":"Currency","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"otherCharges","title":"OtherCharges","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"deliveryCharges","title":"DeliveryCharges","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"tpsShareExl","title":"TpsShareExl","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"tpsShareIncl","title":"TpsShareIncl","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"tpsPercentExl","title":"TpsPercentExl","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"tpsPercentIncl","title":"TpsPercentIncl","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"eduCess","title":"EduCess","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"serviceTax","title":"ServiceTax","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vat","title":"Vat","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"baseValue","title":"BaseValue","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false}
],"headerVisible":false,"height":"100%","minDesktopHeight":180,"minHeight":180,"padding":"2","styleAsGrid":false,"styles":{}}, {"onGridButtonClick":"listItemsGridButtonClick"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvVendorItems","targetProperty":"dataSet"}, {}]
}]
}]
}],
panelVendorItems2: ["wm.Panel", {"autoScroll":true,"enableTouchHeight":true,"height":"30%","horizontalAlign":"left","margin":"1","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
buttonEmptyItems2: ["wm.Button", {"border":"1","caption":"No Matching Results Found","imageIndex":16,"imageList":"app.silkIconList","styles":{},"width":"100%"}, {}]
}],
panelVendorItems: ["wm.Panel", {"autoScroll":true,"enableTouchHeight":true,"height":"30%","horizontalAlign":"left","margin":"1","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvVendorItems.isEmpty","targetProperty":"showing"}, {}]
}],
buttonEmptyItems: ["wm.Button", {"border":"1","caption":"Catalogue is empty","imageIndex":16,"imageList":"app.silkIconList","styles":{},"width":"100%"}, {}]
}],
buttonBarOrder: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","showing":false,"styles":{},"verticalAlign":"top","width":"100%"}, {}, {
bOrderPreview: ["wm.Button", {"border":"1","caption":"Checkout","imageIndex":22,"imageList":"app.silkIconList","styles":{},"width":"40%"}, {"onclick":"bOrderPreviewClick2"}]
}]
}],
layerPlaceOrder: ["wm.Layer", {"autoScroll":true,"borderColor":"","caption":"layer1","horizontalAlign":"center","styles":{},"themeStyleType":"","verticalAlign":"top"}, {"onShow":"layerPlaceOrderShow"}, {
containerWidget1: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"center","padding":"1","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
panel3: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
largeTextArea1: ["wm.LargeTextArea", {"border":"0","caption":"Comments","captionAlign":"center","captionSize":"15px","dataValue":undefined,"desktopHeight":"81px","displayValue":"","height":"81px","mobileHeight":"55px","padding":"0","styles":{"fontSize":"12px"},"width":"90%"}, {}],
listFinalOrder1: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":true,"field":"itemName","title":"ItemName","width":"100%","align":"left","formatFunc":"listFinalOrderItemNameFormat","editorProps":{"restrictValues":true},"mobileColumn":true},
{"show":false,"field":"desc","title":"Desc","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"orderedPrice","title":"OrderedPrice","width":"120px","align":"left","formatFunc":"wm_button_formatter","expression":"if(${quantity} > 0){\n' Remove From Cart';\n}else{\n'';\n\n}","mobileColumn":true},
{"show":true,"field":"quantity","title":"Quantity","width":"120px","align":"right","formatFunc":"wm_button_formatter","expression":"if(${quantity} > 0){\n${quantity}+'  in Cart <br>Add More';\n}else{\n' Add to Cart ';\n\n}","mobileColumn":true},
{"show":false,"field":"itemId","title":"ItemId","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","editorProps":{"restrictValues":true},"expression":"","mobileColumn":false}
],"headerVisible":false,"height":"100%","minDesktopHeight":250,"minHeight":250,"padding":"","selectionMode":"none","styleAsGrid":false,"styles":{}}, {"onGridButtonClick":"listFinalOrder1GridButtonClick"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"vOrderedItems","targetProperty":"dataSet"}, {}]
}]
}]
}],
buttonBar2: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"50px","enableTouchHeight":true,"height":"50px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"41px","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
bCancelOrder: ["wm.Button", {"border":"1","caption":"Cancel","desktopHeight":"45px","height":"45px","imageIndex":6,"imageList":"app.silkIconList","styles":{},"width":"75undefined"}, {"onclick":"layerSelectOrder","onclick1":"bCancelOrderClick1"}],
panel2: ["wm.Panel", {"border":"1","borderColor":"#121010","height":"45px","horizontalAlign":"left","styles":{"backgroundColor":"#ffffff"},"verticalAlign":"middle","width":"100%"}, {}, {
labelTotalOrderPrice: ["wm.Label", {"align":"left","caption":"Total:","height":"100%","margin":"2","padding":"2","singleLine":false,"styles":{"fontWeight":"bolder","fontSize":"14px","backgroundColor":"#f0dddd"},"width":"100%"}, {}]
}],
buttonConfirmOrder: ["wm.Button", {"border":"1","caption":"Confirm Order","desktopHeight":"45px","height":"45px","imageIndex":88,"imageList":"app.silkIconList","styles":{},"width":"108.5px"}, {"onclick":"buttonConfirmOrderClick"}]
}]
}]
}],
layerOrderResult: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"middle"}, {}, {
panel4: ["wm.Panel", {"height":"100%","horizontalAlign":"center","verticalAlign":"middle","width":"100%"}, {}, {
labelOrderResults: ["wm.Label", {"align":"center","height":"150px","padding":"4","singleLine":false,"styles":{"color":"#e61d34","fontWeight":"bold","fontSize":"14px"},"width":"80%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"svCompleteOrder.dataValue","targetProperty":"caption"}, {}]
}]
}],
buttonBack: ["wm.Button", {"border":"1","caption":"< Back","imageIndex":3,"imageList":undefined,"styles":{},"width":"250.80000019073486px"}, {"onclick":"refreshVendorItemList","onclick1":"buttonBackClick2","onclick2":"layerSelectOrder"}]
}]
}]
}]
}]
};

DMCustomerOrderSelectPg.prototype._cssText = '.btnTest{\
color:#E73838;\
background:url("images/button/logout.png") no-repeat left center;\
padding-left:20px;\
}\
';
DMCustomerOrderSelectPg.prototype._htmlText = '';